package steamapi;


import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class StudentApi {
    public static void main(String[] args) {
//        Student student = new Student(1L,"刘牌",22,"贵州");
//        Student student2 = new Student(2L,"刘杰",23,"贵州");
//        Student student3 = new Student(3L,"刘宏",31,"贵州");
//        Student student4 = new Student(4L,"刘琴",27,"贵州");
//        List<Student> list = new ArrayList<>();
//        list.add(student);
//        list.add(student2);
//        list.add(student3);
//        list.add(student4);
        //list.forEach(System.out::println);
        //System.out.println(stuFilter(list));
    }

//    public static List<Student> stuFilter(List<Student> students){
//        return students.stream().filter(student -> "刘牌".equals(student.getName())).collect(Collectors.toList());
//    }
}
